<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<meta charset="utf-8" />
	<title>后台管理 - 订单管理</title>

	<meta name="keywords" content="{$Think.CONFIG.keywords}" />
	<meta name="description" content="{$Think.CONFIG.description}" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
	<link rel="stylesheet" href="__PUBLIC__/css/page.css">
	<link rel="stylesheet" href="__PUBLIC__/css/tuihuo.css" />
	<style>
		.header_top_position{position: fixed;top: 0;width: 150%;z-index: 999}
		.xianshi{position: fixed;top: 89px;left: 591px;width: 420px;height: 420px;display: none;}
		.xianshi img{width: 100%;height: 100%;}
	</style>
	<include file="Public/head" />
</head>
<?php $Order='active';$ptitle='订单管理';$title='换货信息';?>
<body class="no-skin">
<include file="Public/header" />
<div class="main-container" id="main-container">
	<script type="text/javascript">
		try{ace.settings.check('main-container' , 'fixed')}catch(e){}
	</script>

	<include file="Public/sidebar" />
	<div class="main-content">
		<div class="main-content-inner">
			<!-- #section:basics/content.breadcrumbs -->
			<include file="Public/breadcrumbs" />

			<!-- /section:basics/content.breadcrumbs -->
			<div class="page-content">
				<include file="Public/set" />

				<!--主体-->
				<div class="tui" style="margin: 0 !important;">
					<form method="post" action="{:U(order_return_info)}" enctype="multipart/form-data" class="ajax-form" onsubmit="return check();">
						<input type="hidden" name="order_id" value="{$orderInfo['order_id']}">
						<input type="hidden" name="p" value="{$p}">
						<input type="hidden" name="search" value="{$search}">
						<input type="hidden" name="order_status_check" value="{$order_status}">
						<input type="hidden" name="install_status_check" value="{$install_status}">
						<input type="hidden" name="final_payment_status_check" value="{$final_payment_status}">
						<div class="tui_zuo">
							<div class="zuo1">
								<div class="fl">订单状态：</div>
								<div style="margin-top: 32px;">
									<select id="order_status" name="" disabled style="width: 100px;height:28px;" >
										<option value="4" <if condition="$orderInfo['order_status'] eq 4">selected</if>>申请换货</option>
										<option value="5" <if condition="$orderInfo['order_status'] eq 5">selected</if>>确认换货</option>
										<option value="6" <if condition="$orderInfo['order_status'] eq 6">selected</if>>已换货</option>
										<option value="7" <if condition="$orderInfo['order_status'] eq 7">selected</if>>申请退货</option>
										<option value="8" <if condition="$orderInfo['order_status'] eq 8">selected</if>>确认退货</option>
										<option value="9" <if condition="$orderInfo['order_status'] eq 9">selected</if>>已退货</option>
									</select>
								</div>
							</div>
							<div style="clear: both;"></div>

							<div class="zuo1" style="margin-top: 30px;">
								<div>换货商品：</div>
								<div><img src="__ROOT__{$orderInfo['good_picture']}" /></div>
								<div>
									<p>商品名称:{$orderInfo['good_name']}</p>
									<p>规格:{$orderInfo['grade']}</p>
								</div>
							</div>
							<div style="clear: both;"></div>

							<div class="zuo1">
								<div class="fl">退货数量：</div>
								<div style="margin-top: 32px;">
									<input type="number" id="num" disabled class="ui-input w120 buyCount" name="return_num" value="{$orderInfo['return_num']}" >
								</div>
							</div>
							<div style="clear: both;"></div>
							<div class="zuo3">
								<div>换货原因：</div>
								<div>
									<textarea name="return_reason" disabled id="excel_file" rows="" cols="">{$orderInfo['return_reason']}</textarea>
								</div>
							</div>
							<div style="clear: both;"></div>
							<p style="padding-left: 74px;color: red;display: none;" class="wenben">*文本内容不能为空</p>
							<div class="zuo4">
								<div>上传包装盒前后左右四张图片</div>
								<div class="zuoimg_left">上传正面：<br />
									<span style="color: red;display: none;" class="upimg">*正面图片不能为空</span>
								</div>
								<img src="__ROOT__{$orderInfo['return_picture']['front']}"  class="blah" style="width:100px;height:100px;float:left;margin-right:10px;"/>

								<div class="zuoimg_left">上传反面：<br />
									<span style="color: red;display: none;" class="downimg">*反面图片不能为空</span>
								</div>
								<img src="__ROOT__{$orderInfo['return_picture']['reverse']}" class="blah" style="width:100px;height:100px;float:left;margin-right:10px;"/>

								<div style="clear: both;"></div>
								<div class="zuoimg_left">上传左面：<br />
									<span style="color: red;display: none;" class="leftimg">*左面图片不能为空</span>
								</div>
								<img src="__ROOT__{$orderInfo['return_picture']['left']}" class="blah" style="width:100px;height:100px;float:left;margin-right:10px;"/>

								<div class="zuoimg_left">上传右面：<br />
									<span style="color: red;display: none;" class="rightimg">*右面图片不能为空</span>
								</div>
								<img src="__ROOT__{$orderInfo['return_picture']['right']}" class="blah" style="width:100px;height:100px;float:left;margin-right:10px;"/>

								<div style="clear: both;"></div>
							</div>
							<!-- 当用户申请换货后，显示管理员的操作 -->
							<if condition="$orderInfo['order_status'] eq 4">
								<div class="zuo5">
									<input type="hidden" name="orderStatus" value="5">
									<input type="submit" value="同意换货">
								</div>
							</if>

							<!-- 管理员同意换货后，用户忘了点击已换货，客服核实后，可以点击已换货 -->
							<if condition="$orderInfo['order_status'] eq 5">
								<div class="zuo5">
									<input type="hidden" name="orderStatus" value="6">
									<input type="submit" value="已换货">
								</div>
							</if>
						</div>
					</form>
					<div class="tui_you" style="width: 398px!important;">
						<div>订单详情</div>
						<div>
							<div>
								<img src="__ROOT__{$orderInfo['good_picture']}" />
							</div>
							<div>
								<p>商品名称:{$orderInfo['good_name']}</p>
								<p>规格:{$orderInfo['grade']}</p>
							</div>
						</div>
						<div style="clear: both;"></div>
						<div>
							<div>
								<span>订单编号：</span>
								<span>{$orderInfo['order_number']}</span>
							</div>
							<div>
								<span>物流单号：</span>
								<span>{$orderInfo['tracking_number']}</span>
							</div>
							<div>
								<span>商品单价：</span>
								<span>{$orderInfo['price']}</span>
							</div>
							<div>
								<span>数量：</span>
								<span>{$orderInfo['num']}</span>
							</div>
							<div>
								<span>运费：</span>
								<span style="color: red;">包邮</span>
							</div>
							<div>
								<span>上门安装：</span>
						<span>
							<if condition="$orderInfo['is_install'] eq 1">
								需要
								<else />
								不需要
							</if>
						</span>
							</div>
							<div>
								<span>安装费：</span>
						<span>
							<if condition="$orderInfo['install_price'] eq ''">
								无
							<else />
								￥{$orderInfo['install_price']}
							</if>
						</span>
							</div>
							<div>
								<span>商品总价：</span>
						<span>
							￥{$orderInfo['price']*$orderInfo['num']+$orderInfo['freight']+$orderInfo['install_price']}
						</span>
							</div>
							<div>
								<span>收货人：</span>
								<span>{$orderInfo['receiver']}</span>
							</div>
							<div>
								<span>联系电话：</span>
								<span>{$orderInfo['phone']}</span>
							</div>
							<div>
								<span>收货地址：</span>
								<span>{$orderInfo['province']}{$orderInfo['city']}{$orderInfo['county']}{$orderInfo['detailed_address']}</span>
							</div>
							<div>
								<span>订单状态：</span>
						<span>
							<switch name="orderInfo['order_status']">
								<case value="-1">已取消</case>
								<case value="0">待支付</case>
								<case value="1">待发货</case>
								<case value="2">待收货</case>
								<case value="3">已收货</case>
								<case value="4">申请换货</case>
								<case value="5">确认换货</case>
								<case value="6">已换货</case>
								<case value="7">申请退货</case>
								<case value="8">确认退货</case>
								<case value="9">已退货</case>
							</switch>
						</span>
							</div>
							<div>
								<span>下单时间：</span>
								<span>{$orderInfo['add_time']}</span>
							</div>
							<div>
								<span>发货时间：</span>
								<span>{$orderInfo['delivery_time']}</span>
							</div>
							<div>
								<span>收货时间：</span>
								<span>{$orderInfo['confirm_time']}</span>
							</div>
						</div>
					</div>
					<div style="clear: both;"></div>
				</div>
			</div><!-- /.page-content -->
		</div>
	</div><!-- /.main-content -->
	<include file="Public/footer" />

</div><!-- /.main-container -->
<div class="xianshi"><img src="" alt=""></div>
<include file="Public/footerjs" />
<!-- inline scripts related to this page -->

<script>
	$('.zxbtn').hover(function(){
		$(this).next().css('display','block')
	},function(){
		$(this).next().css('display','none')
	})
	$('.blah').hover(function(){
		$('.xianshi').css('display','block');
		$('.xianshi img').attr('src',$(this).attr('src'))

	},function(){
		$('.xianshi').css('display','none');
	})
</script>

</body>
</html>
